import java.util.*;

var list = new java.util.ArrayList();
list.add("One");
list.add("Two");
list.add("Three");

for (elem in list) {
  println("index: {indexof elem}, element: {elem}.");
}
